using System;
using System.Net.Sockets;

namespace RxjhServer
{
	public class SocketConnectEventArgs : EventArgs
	{
		private Socket m_Socket;

		private bool m_AllowConnection;

		public Socket Socket => m_Socket;

		public bool AllowConnection
		{
			get
			{
				return m_AllowConnection;
			}
			set
			{
				m_AllowConnection = value;
			}
		}

		public SocketConnectEventArgs(Socket s)
		{
			m_Socket = s;
			m_AllowConnection = true;
		}
	}
}
